-- GENERATED SPELL FOR [Blackrock Outrunner] --


function spell0_485(pUnit, Event) --@Frenzy,Self--
pUnit:FullCastSpellOnTarget(3019,pUnit)
pUnit:RegisterEvent('Sorts_485', 15000, 1)
end

function spell1_485(pUnit, Event) --@Net,n/a--
pUnit:FullCastSpellOnTarget(6533,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_485', 2322, 1)
end

function Sorts_485(pUnit, Event)
local choix_sorts_485 = math.random(0, 1)
if choix_sorts_485 == 0 then
pUnit:RegisterEvent('spell0_485', 1, 1)
end
if choix_sorts_485 == 1 then
pUnit:RegisterEvent('spell1_485', 1, 1)
end
end

function mob485_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_485', math.random(1500, 3000), 1)
end

function mob485_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob485_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob485_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(485, 1, 'mob485_Action')
RegisterUnitEvent(485, 2, 'mob485_Leave')
RegisterUnitEvent(485, 3, 'mob485_Kill')
RegisterUnitEvent(485, 4, 'mob485_Die')
